package com.ozo.cloud.system.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 字典项保存对象
 *
 * @author qiangesoft
 * @date 2024-10-29
 */
@Schema(description = "字典项保存对象")
@Data
@NoArgsConstructor
public class SysDictDataSaveDTO {

    @Schema(description = "id")
    private Long id;

    @NotNull(message = "字典类型id不能为空")
    @Schema(description = "字典类型id")
    private Long dictTypeId;

    @NotBlank(message = "字典名称不能为空")
    @Schema(description = "字典名称")
    private String dictItem;

    @NotBlank(message = "字典编码不能为空")
    @Schema(description = "字典编码")
    private String dictValue;

    @Schema(description = "css样式")
    private String dictCss;

    @NotNull(message = "排序号不能为空")
    @Schema(description = "排序号")
    private Integer orderNum;

    @NotNull(message = "状态不能为空")
    @Schema(description = "状态：1-启用 0-禁用")
    private String status;

    @Schema(description = "备注")
    private String remark;

}
